import request from '@/utils/request'

// 查询泵组运行数据列表
export function listDispatchPumpGroupOperationData(query) {
  return request({
    url: '/system/dispatchPumpGroupOperationData/list',
    method: 'get',
    params: query
  })
}

// 查询泵组运行数据详细
export function getDispatchPumpGroupOperationData(pumpGroupOperationDataId) {
  return request({
    url: '/system/dispatchPumpGroupOperationData/' + pumpGroupOperationDataId,
    method: 'get'
  })
}

// 新增泵组运行数据
export function addDispatchPumpGroupOperationData(data) {
  return request({
    url: '/system/dispatchPumpGroupOperationData',
    method: 'post',
    data: data
  })
}

// 修改泵组运行数据
export function updateDispatchPumpGroupOperationData(data) {
  return request({
    url: '/system/dispatchPumpGroupOperationData',
    method: 'put',
    data: data
  })
}

// 删除泵组运行数据
export function delDispatchPumpGroupOperationData(pumpGroupOperationDataId) {
  return request({
    url: '/system/dispatchPumpGroupOperationData/' + pumpGroupOperationDataId,
    method: 'delete'
  })
}
